import request from '@/utils/request';

// 考核员工列表
export function fetchUsertask(params) {
    return request('/api/gmstask/v1/task/task/getusertask', {
        method: 'post',
        data: params
    });
}

// 产品线和项目组信息列表
export function fetchProductProjectList() {
    return request('/api/gmstask/v1/task/task/getProductProjectList', {
        method: 'post'
    });
}

// 考核员工的考核信息
export function fetchUserTaskInfo(params) {
    return request('/api/gmstask/v1/task/task/getusertaskinfo', {
        method: 'post',
        data: params
    });
}

// 任务列表
export function fetchTasklist(params) {
    return request('/api/gmstask/v1/task/task/gettasklist', {
        method: 'post',
        data: params
    });
}

// 获取任务数量
export function fetchTaskcount(params) {
    return request('/api/gmstask/v1/task/task/gettaskcount', {
        method: 'post',
        data: params
    });
}

// 获取部门参与考核人数
export function fetchDepartmentEvalUserCount(params) {
    return request('/api/gmstask/v1/task/task/getdepartmentevalusercount', {
        method: 'post',
        data: params
    });
}

// 获取考核员工走势图
export function fetchUserTrend(params) {
    return request('/api/gmstask/v1/task/task/getusertrend', {
        method: 'post',
        data: params
    });
}
